<?php

namespace App\Http\Models;

use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Database\Eloquent\Model;


use Illuminate\Support\Facades\Hash;
use Tymon\JWTAuth\Contracts\JWTSubject as AuthenticatableUserContract;

use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;

class Admin extends Authenticatable implements
    CanResetPasswordContract,
    AuthenticatableUserContract
{



    protected $table = 'admins';

    protected $guarded = [];

    /**
     * Get the identifier that will be stored in the subject claim of the Auth.
     *
     * @return mixed
     */
    public function getJWTIdentifier()
    {
        return $this->getKey(); // Eloquent model method
    }

    /**
     * Return a key value array, containing any custom claims to be added to the Auth.
     *
     * @return array
     */
    public function getJWTCustomClaims()
    {
        return [];
    }
}

